#ifndef LOGINDIALOG_H
#define LOGINDIALOG_H
#include <QDialog>
#include <QLabel>
#include <QLineEdit>
#include <QCloseEvent>


class LoginDialog : public QDialog
{
Q_OBJECT            //是个宏，明了一些函数，方便我们实现信号槽，一定要写上

public:
    LoginDialog();

 //Qt拓展了c++语法；
public slots:       //槽函数
    void onLoginBtnSlot();
    void onCancelBtnSlot();

public:
    QLabel* username_lab;
    QLabel* password_lab;
    QLineEdit* username;
    QLineEdit* password;

public:
    void closeEvent(QCloseEvent* ev);

};

#endif // LOGINDIALOG_H
